package com.example.clock_demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(description = "用户信息")
public class UserDTO {
    
    @ApiModelProperty(value = "用户ID")
    private Long id;
    
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
    
    @ApiModelProperty(value = "密码（创建时必填）")
    private String password;
    
    @ApiModelProperty(value = "员工编号")
    private String employeeNo;
    
    @ApiModelProperty(value = "真实姓名")
    private String realName;
    
    @ApiModelProperty(value = "部门")
    private String department;
    
    @ApiModelProperty(value = "班组")
    private String team;
    
    @ApiModelProperty(value = "手机号")
    private String phone;
    
    @ApiModelProperty(value = "邮箱")
    private String email;
    
    @ApiModelProperty(value = "角色: ADMIN-管理员, EMPLOYEE-普通员工")
    private String role;
    
    @ApiModelProperty(value = "状态: 0-禁用, 1-启用")
    private Integer status;
}